<?php


namespace app\wechat\validate;


use think\Validate;

class Article extends Validate
{
    protected $rule=[
        'title|标题'=>'require',
        'book_name|书名'=>'require',
        'content|文章'=>'require',
    ];
    protected $message=[
        'title.require'=>'标题不允许为空',
        'book_name.require'=>'请填写书名',
        'content.require'=>'请填写内容',
    ];
    protected $scene=[
        'home_book'=>['title','book_name','content'],
    ];
}